import Layout from '@/layout/index.vue';
import * as i18n from '@/utils';
let order = {
	path: '/order',
	component: Layout,
	name: '订单管理',
	meta: {
	  title: i18n.t('router.orderManage'),
	  icon: 'dashboard',
	  isPermiss:'/management/sale'
	},
	children: [
		{
		  path: '/order/consume',
		  component: () => import('@/views/order/consume/index.vue'),
		  name: '订单交易',
		  meta: { title: i18n.t('router.orderTran') },
	  	  isPermiss:'/management/sale.sale_orders/getList'
		},
		{
		  path: '/order/goods',
		  component: () => import('@/views/order/goods/index.vue'),
		  name: '商品交易',
		  meta: { title: i18n.t('router.goodsTran') },
	  	  isPermiss:'/management/sale.sale_orders/getDetailsList'
		},
		{
		  path: '/order/payment',
		  component: () => import('@/views/order/payment/index.vue'),
		  name: '退款交易',
		  meta: { title: i18n.t('router.Refund') },
	  	  isPermiss:'/management/sale.sale_orders/getRefundList'
		}
	]
}

export default order;